<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>预约管理系统</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="./css/bookList.css">
</head>
<body>
    <div class="container">
        <div class="header">
            <h1 id="title"><i class="fas fa-calendar-alt"></i>预约列表</h1>
            <div class="actions">
                <div class="search-box">
                    <input type="text" placeholder="搜索预约...">
                    <i class="fas fa-search"></i>
                </div>
            </div>
        </div>

        <div class="appointments-list">
            <div class="list-header">
                <div class="header-item" style="flex:2">目的地</div>
                <div class="header-item">预定人数</div>
                <div class="header-item">预计出发时间</div>
                <div class="header-item">预计返回时间</div>
                <div class="header-item">操作</div>
            </div>
            
            <div class="list-body" id="appointmentsContainer">
                <!-- 动态生成的预约项会放在这里 -->
            </div>
        </div>

    </div>
    
    <!-- 查看预约的模态框 -->
    <div class="modal" id="viewModal">
        <div class="modal-content">
            <div class="modal-header">
                <h2>预约详情</h2>
                <button class="close-btn">&times;</button>
            </div>
            <div class="modal-body" id="appointmentDetails">
                <!-- 详情内容会动态填充 -->
            </div>
            <div class="modal-footer">
                <button class="btn secondary close-modal">关闭</button>
            </div>
        </div>
    </div>
    
    <!-- 删除确认模态框 -->
    <div class="modal" id="deleteModal">
        <div class="modal-content small">
            <div class="modal-header">
                <h2>确认删除</h2>
                <button class="close-btn">&times;</button>
            </div>
            <div class="modal-body">
                <p>您确定要删除此预约记录吗？此操作不可撤销。</p>
            </div>
            <div class="modal-footer">
                <button class="btn secondary close-modal">取消</button>
                <button class="btn danger" id="confirmDelete">确认删除</button>
            </div>
        </div>
    </div>
    
    <script src="./js/bookList.js"></script>
</body>
</html>